#include <stdio.h>
#include "queue.h"

int main(int argc, char *argv[])
{
	queue_t *myqueue = NULL;
	int i;
	char c;

	if (argc < 2)
		return 1;
	queue_init(&myqueue, sizeof(char), 10);

	for (i = 0; argv[1][i]; i++) {
		queue_enq(myqueue, argv[1] + i);
	}

	while (!queue_empty(myqueue)) {
		queue_deq(myqueue, &c);
		putchar(c);
	}
	putchar('\n');

	queue_destroy(&myqueue);

	return 0;
}

